package com.test.demo.mydubbo.provider.service;

import com.test.demo.mydubbo.framework.protocol.URL;
import com.test.demo.mydubbo.framework.protocol.dubbo.NettyServer;
import com.test.demo.mydubbo.framework.protocol.dubbo.cache.LocalCache;
import com.test.demo.mydubbo.provider.service.impl.DemoServiceImpl;

public class ProviderStarter {

    public static void main(String[] args) {
        LocalCache.put(DemoService.class.getName(), DemoServiceImpl.class);
        //启动一个服务器处理请求

        NettyServer nettyServer = new NettyServer();
        nettyServer.start(new URL("localhost",9000));
    }
}
